using Newtonsoft.Json;
/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "财务记账",TableName = "Financial")]
    public partial class Financial:BaseEntity
    {
        /// <summary>
       ///流水号
       /// </summary>
       [SugarColumn(IsPrimaryKey = true)]
       [Key]
       [Display(Name ="流水号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Required(AllowEmptyStrings=false)]
       public string FinancialAccountId { get; set; }

       /// <summary>
       ///应付流水号
       /// </summary>
       [Display(Name ="应付流水号")]
       [MaxLength(255)]
       [JsonIgnore]       [SugarColumn(NoSerialize = true)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string ReceivableId { get; set; }

       /// <summary>
       ///应付流水号
       /// </summary>
       [Display(Name ="应付流水号")]
       [MaxLength(255)]
       [JsonIgnore]       [SugarColumn(NoSerialize = true)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string DealWithId { get; set; }

       /// <summary>
       ///财务记账名称
       /// </summary>
       [Display(Name ="财务记账名称")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string FinancialName { get; set; }

       /// <summary>
       ///财务类别名称
       /// </summary>
       [Display(Name ="财务类别名称")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string CategoryName { get; set; }

       /// <summary>
       ///收款方/付款方
       /// </summary>
       [Display(Name ="收款方/付款方")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string ReceiptPayMent { get; set; }

       /// <summary>
       ///应收/应付
       /// </summary>
       [Display(Name ="应收/应付")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string PayableReceivable { get; set; }

       /// <summary>
       ///付款金额
       /// </summary>
       [Display(Name ="付款金额")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? PaymentPrice { get; set; }

       /// <summary>
       ///付款时间
       /// </summary>
       [Display(Name ="付款时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? PaymentTime { get; set; }

       /// <summary>
       ///付款机构
       /// </summary>
       [Display(Name ="付款机构")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string OrderOrganization { get; set; }

       
    }
}
